//
//  Flower.m
//  OcDay1Homework
//
//  Created by dllo on 16/5/21.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "Flower.h"

@implementation Flower

-(void)setName:(NSString *)name{
    _name = name;
}
-(NSString *)name{
    return _name;
}
-(void)setType:(NSString *)type{
    _type = type;
}
-(NSString *)type{
    return _type;
}
-(void)setSize:(NSInteger)size{
    _size = size;
}
-(NSInteger)size{
    return _size;
}
-(void)myPrint{
    NSLog(@"%@ %@ %ld",_name ,_type,_size);
}
-(instancetype)initWithName:(NSString *)name withType:(NSString *)type withSize:(NSInteger)size{
    self = [super init];
    if(self){
        _name = name;
        _type = type;
        _size = size;
    }
    return self;
}

@end
